package com.chixing.day18_thread.word;

public class PublicSale  implements Runnable{
    private Sale sale ;

    public PublicSale(Sale sale) {
        this.sale = sale;
    }

    @Override
    public void run() {

            sale.sale();
            try {
                Thread.sleep(2);
            } catch (InterruptedException e) {
                throw new RuntimeException(e);
            }


    }
}
